You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > FindAndGather Method > Vector.FindAndGather Method ([In] TMtxVec, [In] string, [In] TCplx, [In] TVecInt)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.FindAndGather Method ([In] TMtxVec, [In] string, [In] TCplx, [In] TVecInt)

Finds and gathers vector elements.

Syntax
C#
Visual Basic
public TVec FindAndGather([In] TMtxVec a, [In] string op, [In] TCplx b, [In] TVecInt Indexes);

Fills the Indexes vector with indexes, of those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. The method also copies or "gathers" the matched elements to the calling vector. The Length and complex property of the calling vector are set automatically. 

The Indexes vector stores the indexes as Integer in to the memory location occupied by Values array. The memory is typecasted to an array of integers via IValues array property. Other TMtxVec methods can not be used to perform operations on an array of integers unless explicitely specified.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!